import 'dart:async';

import 'package:flame/camera.dart';
import 'package:flame/components.dart';
import 'package:flame/flame.dart';
import 'package:flutter/material.dart';
import 'package:flame/game.dart';

void main() {
  runApp(
    GameWidget(
      game: WizzardWay(),
    ),
  );
}

class WizzardWay extends FlameGame {
  @override
  World world = World();
  @override
  CameraComponent camera = CameraComponent(viewport: MaxViewport());
  @override
  Color backgroundColor() => Colors.white;
  @override
  FutureOr<void> onLoad() {
    world.add(camera);

    return super.onLoad();
  }
}
